<?php ob_start();
    /*$make       = Model_Listing_Attribute::one(array('_id' => $this->listing->make));
    $model      = Model_Listing_Attribute::one(array('_id' => $this->listing->model));*/
    $make       = $this->listing->make;
    $model      = $this->listing->model;
	$internal_lng = $this->listing->getInternalLanguage();
?>
    <?php if (!empty($make)) { echo "<dl>".$this->dtDd($this->t('Make', $internal_lng), $make->name)."</dl>";}?>
    <?php if (!empty($model)) {echo "<dl>".$this->dtDd($this->t('Model', $internal_lng), $model->name)."</dl>";}?>
    <?php echo "<dl>".$this->dtDd($this->t('Motorcycle Type', $internal_lng), $this->listing->motorcycletype)."</dl>"?>
    <?php echo "<dl>".$this->dtDd($this->t('Year Manufactured', $internal_lng), $this->listing->yearmanufactured)."</dl>"?>    
    <?php echo "<dl>".$this->dtDd($this->t('Number of previous owners', $internal_lng), $this->listing->numberpreviousowner)."</dl>"?>

    <?php
    if (!empty($this->listing->exteriorcolor)) {
        $i=0;        $field='';
        foreach ($this->listing->exteriorcolor as $data) {
            if ($i==0) {
                $field.= $data; $i++;            }
            else {
                $field = $field.', '.$this->t($data, $internal_lng);            }
        }echo "<dl class='desc'>".$this->dtDd($this->t('Exterior Color', $internal_lng), $field)."</dl>"; }
    ?>
    <?php if (!empty($this->listing->enginemotor)) {echo "<dl>".$this->dtDd($this->t('Engine Motor', $internal_lng), $this->t($this->listing->enginemotor, $internal_lng))."</dl>";}?>
    <?php if (!empty($this->listing->transmission)) {echo "<dl>".$this->dtDd($this->t('Transmission', $internal_lng), $this->t($this->listing->transmission, $internal_lng))."</dl>";}?>
    <?php if (!empty($this->listing->mileage)) {echo "<dl>".$this->dtDd($this->t('Mileage', $internal_lng), $this->listing->mileage." Miles")."</dl>";}?>
            
<?php $content = trim(ob_get_clean())?>
<?php if (!empty($content)):?>
    <div id="detail_content_text_category" class="detail category">
        <h2><?php echo $this->t('Motorcycle Information', $internal_lng)?></h2>
        
            <?php echo $content ?>
        
    </div>
<?php endif;?>